package com.ruoyi.combat.service.camera.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.combat.mapper.camera.CombatCameraExceptionMapper;
import com.ruoyi.combat.domain.camera.CombatCameraException;
import com.ruoyi.combat.service.camera.ICombatCameraExceptionService;

/**
 * 摄像头异常情况
Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-23
 */
@Service
public class CombatCameraExceptionServiceImpl implements ICombatCameraExceptionService 
{
    @Autowired
    private CombatCameraExceptionMapper combatCameraExceptionMapper;

    /**
     * 查询摄像头异常情况

     * 
     * @param id 摄像头异常情况
主键
     * @return 摄像头异常情况

     */
    @Override
    public CombatCameraException selectCombatCameraExceptionById(Long id)
    {
        return combatCameraExceptionMapper.selectCombatCameraExceptionById(id);
    }

    /**
     * 查询摄像头异常情况
列表
     * 
     * @param combatCameraException 摄像头异常情况

     * @return 摄像头异常情况

     */
    @Override
    public List<CombatCameraException> selectCombatCameraExceptionList(CombatCameraException combatCameraException)
    {
        return combatCameraExceptionMapper.selectCombatCameraExceptionList(combatCameraException);
    }

    /**
     * 新增摄像头异常情况

     * 
     * @param combatCameraException 摄像头异常情况

     * @return 结果
     */
    @Override
    public int insertCombatCameraException(CombatCameraException combatCameraException)
    {
        return combatCameraExceptionMapper.insertCombatCameraException(combatCameraException);
    }

    /**
     * 修改摄像头异常情况

     * 
     * @param combatCameraException 摄像头异常情况

     * @return 结果
     */
    @Override
    public int updateCombatCameraException(CombatCameraException combatCameraException)
    {
        return combatCameraExceptionMapper.updateCombatCameraException(combatCameraException);
    }

    /**
     * 批量删除摄像头异常情况

     * 
     * @param ids 需要删除的摄像头异常情况
主键
     * @return 结果
     */
    @Override
    public int deleteCombatCameraExceptionByIds(Long[] ids)
    {
        return combatCameraExceptionMapper.deleteCombatCameraExceptionByIds(ids);
    }

    /**
     * 删除摄像头异常情况
信息
     * 
     * @param id 摄像头异常情况
主键
     * @return 结果
     */
    @Override
    public int deleteCombatCameraExceptionById(Long id)
    {
        return combatCameraExceptionMapper.deleteCombatCameraExceptionById(id);
    }
}
